import request from '@/utils/request'

// 获取验证码
export function getCodeAPI(data: any) {
    return request({
        url: '/login/code',
        method: 'post',
        data
    })
};

// 登录
export function loginAPI(data: any) {
    return request({
        url: '/login',
        method: 'post',
        data
    })
};

// 协议文件
export function getPolicyAPI(params: any) {
    return request({
        url: '/policy_protocol/list',
        params
    })
};